package com.nbsaas.boot.site.rest.convert;

import com.nbsaas.boot.site.data.entity.Advise;
import com.nbsaas.boot.site.api.domain.request.AdviseRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 请求对象转换成实体对象
*/

public class AdviseEntityConvert  implements Converter<Advise, AdviseRequest> {

    @Override
    public Advise convert(AdviseRequest source) {
        Advise result = new Advise();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

